#!/usr/bin/env python
# encoding: utf-8
"""
@author:zwb
@file: urls.py
@contact: zwb15083976291@163.com
@time: 2021/10/09
"""
from django.urls import path
from common.views import home, articles, archives, categories, tags, link, messages, search, comments

urlpatterns = [
    path('home/website_info', home.WebsiteInfoView.as_view()),  # 博客信息
    path('home/website_config', home.WebsitePageConfigView.as_view()),  # 配置
    path('home/articles/all', home.ArticleListView.as_view()),  # 文章列表
    path('article/details', articles.ArticlesDetailsView.as_view()),  # 文章详情
    path('article/recommend', articles.ArticlesRecommendView.as_view()),  # 文章推荐
    path('article/archives', archives.ArchivesListView.as_view()),  # 文章归档
    path('article/categories', categories.CategorieListView.as_view()),  # 文章分类
    path('article/tags', tags.TagsListView.as_view()),  # 文章分类
    path('article/musics', home.MusicsListView.as_view()),  # 音乐
    path('article/link', link.LinkListView.as_view()),  # 友链
    path('article/message', messages.MessageAdministrationView.as_view()),  # 留言
    path('article/search', search.SearchArticleView.as_view()),  # 搜索
    path('article/comments', comments.CommentsManageView.as_view()),  # 一级评论
    path('article/comments/children', comments.ChildrenCommentsView.as_view()),  # 二级评论
]
